package com.core.journey.bo;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.core.journey.dao.JourneyDao;
import com.core.journey.dto.JourneySearchCondition;
import com.core.journey.pojo.Journey;
import com.core.visitor.pojo.Visitor;

@Service
public class JourneyBo {
	@Resource
	private JourneyDao journeyDao;
	
	public List<Journey> getJourneyList(JourneySearchCondition sc){
		return journeyDao.getJourneyList(sc);
	}
	public void add(Journey journey){
		 journeyDao.add(journey);
	}
	public void  update(Journey journey) {
		journeyDao.update(journey);
	}
	public Journey  getById(Journey journey) {
		return journeyDao.getById(journey.getId());
	}
	public Journey getJourney(Visitor visitor){
		return journeyDao.getJourney(visitor);
	}
	public void del(JourneySearchCondition sc){
		journeyDao.del(sc);
	}
}
